#!/usr/bin/env python3
import argparse
import pandas as pd


def main(table_list):
    for table in table_list:
        df = pd.read_excel(table, header=0)
        print("\t".join(map(str, df.columns)))
        for _, row in df.iterrows():
            print("\t".join(map(str, dict(row).values())))


def run():
    parser = argparse.ArgumentParser(
        description=__doc__,
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument("input", type=str, nargs="+",
                        help="Input xlsx files.")
    args = parser.parse_args()
    main(args.input)
    

if __name__ == "__main__":
    run()